package com.scme.order.ui;

import com.example.webservicetext.R;
import com.example.webservicetext.R.layout;
import com.example.webservicetext.R.menu;
import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.widget.TextView;

/**
 * 主菜单
 */
public class MainActivity extends Activity {

	private TextView textView;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		//获得绑定参数
//		Bundle bundle=this.getIntent().getExtras();
//		//获得用户名称
//		String userName=bundle.getString("userName");
		textView=(TextView) findViewById(R.id.tvMainUserName);
		textView.setText("用户："+LoginActivity.titleUserName);
		
	}

	/**
	 * 餐桌查询
	 */
	public void btn_all_tables_Event(View view)
	{
		Intent intent=new Intent();
		intent.setClass(this, AllTablesActivity.class);
		startActivity(intent);
	}
	
	/**
	 *点餐
	 */
	public void btn_inster_tables_Event(View view)
	{
		Intent intent=new Intent();
		intent.setClass(this, IntoTablesActivity.class);
		startActivity(intent);
	}
	
	/**
	 *查看菜单
	 */
	public void btn_look_foods_Event(View view)
	{
		Intent intent=new Intent();
		intent.setClass(this,FoodsListActivity .class);
		startActivity(intent);
	}
	
	/**
	 * 结账
	 * */
	
	public void btn_sellt_count_Event(View view)
	{
		Intent intent=new Intent();
		intent.setClass(this,SettlCountActivity .class);
		startActivity(intent);
	}
	
	/**
	 * 查看订单
	 * */
	public void btn_query_orders_Event(View view)
	{
		Intent intent=new Intent();
		intent.setClass(this,OrdersListActivity .class);
		startActivity(intent);
	}

}
